package com.spzx.channel.service.impl;

import com.spzx.channel.service.IListService;
import com.spzx.common.core.constant.SecurityConstants;
import com.spzx.common.core.domain.R;
import com.spzx.common.core.web.page.TableDataInfo;
import com.spzx.product.api.RemoteProductService;
import com.spzx.product.api.SpzxService;
import com.spzx.product.api.domain.SkuQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author ChenXing
 * @Description
 * @Create 2024/8/8 21:01
 */

@Service
public class ListServiceImpl implements IListService {

    @Autowired
    private SpzxService spzxService;

    @Override
    public TableDataInfo selectProductSkuList(Integer pageNum, Integer pageSize, SkuQuery skuQuery) {

        R<TableDataInfo> tableDataInfoResult = spzxService.skuList(pageNum, pageSize, skuQuery, SecurityConstants.INNER);


        return tableDataInfoResult.getData() ;
    }
}
